home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Games Collection 1 / software vault.zip / software vault / CDR10 / MAPEDIT.ZIP / SAMPGAME / TEXT.C < prev    next >
C/C++ Source or Header  |  1992-04-11  |  391b  |  25 lines

  1. #include "cyber.h"
  2.  
  3.  
  4.  
  5. fputxys(int px, int py, char *string)
  6. {
  7.     while(*string)
  8.     {
  9.         pch(px,py,*string);
  10.         string++;
  11.         px+=8;
  12.     }
  13. }
  14.  
  15. pch(int px,int py,unsigned int outchar)
  16. {
  17.     register char loop;
  18.  
  19.     for(loop=0;loop<8;loop++)
  20.     {
  21.             memcpy(scrptr+(py+loop)*320+px,csptr+(((outchar/40)*8)+loop)*320+((outchar%40)*8),8);
  22.     }
  23. }
  24.  
  25.